#!/bin/bash


echo "To correct the bias"

listforflatcorr=$1 
FLAT=$2

if [ $# -ne 2  ]
then
	echo "usage: xflatcorr_list.sh listaaa Flat_R.fit"
	exit 0
fi

for fitfile in `cat $listforflatcorr`
do
#	echo $fitfile
	xflatcorr.sh $fitfile $FLAT
done
echo "xzerocorr_list.sh is over"
